home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Merciful 2
/
Merciful - Disc 2.iso
/
software
/
i
/
imagefxv2.1a.lha
/
ImageFX
/
Rexx
/
AutoFX
/
RenameOneForSequence.ifx.pre
< prev
next >
Wrap
Text File
|
1996-03-02
|
823b
|
40 lines
/*
* RenameForSequence.ifx.pre
* Written by Thomas Krehbiel
*
* Rename frames into sequential numbers.
*
* Inputs:
* Word(Arg(1),1) = Sequence number
* Word(Arg(1),2) = Total number of frames (N)
*
* Returns:
* 0 if successful, non-zero on failure
*
*/
OPTIONS RESULTS
base = 'Autofx_RenameOneSeq_'
basedir = GETCLIP(base||'BaseDir')
basefile = GETCLIP(base||'BaseFile')
num = GETCLIP(base||'Count')
IF num = "" THEN num = 30
RequestFile '"Sequence Basename:"' '"'basedir'"' '"'basefile'"'
IF rc ~= 0 THEN EXIT rc
basename = result
RequestNumber '"Number of frames to create:"' num
IF rc ~= 0 THEN EXIT rc
num = result
CALL SETCLIP(base||'BaseDir', filereq.path)
CALL SETCLIP(base||'BaseFile', filereq.file)
CALL SETCLIP(base||'Base', basename)
CALL SETCLIP(base||'Count', num)
EXIT